var newwindow = ''
    function openURL(url) {
        if (newwindow.location && !newwindow.closed) {
            newwindow.location.href = url;
            newwindow.focus();
        }
        else {
            newwindow = window.open(url, 'popupWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=480,height=320,screenX=150,screenY=150,top=150,left=150')
	if (newwindow.opener == null) newwindow.opener = self;

        }
    }
function openChild(file,window) {
childWindow=open(file,window,'resizable=yes,width=200,height=400');
    if (childWindow.opener == null) childWindow.opener = self;
    }

function confirm_delete(url,id)
{
    var myUrl = url + '?id=' + id;    
    if(confirm('Are your sure want to delete this item ?'))
        window.location.href(myUrl);
}
